import matplotlib.pyplot as plt
import seaborn as sns
classes = ['一班','二班','三班','四班']
scores = [99,90,75,60]
plt.figure(figsize=(8,4))
sns.set_style(style='whitegrid',rc={'font.sans-serif':'SimHei'})
plt.subplot(1,2,1)
a = sns.color_palette(palette='pastel',n_colors=4,desat=0.4)
sns.barplot(x=classes,y=scores,palette=a)
plt.title('浅色系')
plt.subplot(1,2,2)
a = sns.color_palette(palette='colorblind',n_colors=4,desat=0.4)
sns.barplot(x=classes,y=scores,palette=a)

plt.title('色盲友好系')
plt.savefig('C://颜色版.png')
plt.show()